﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020010DF RID: 4319
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SceneNpcMonsterInfo : IMessage<SceneNpcMonsterInfo>, IMessage, IEquatable<SceneNpcMonsterInfo>, IDeepCloneable<SceneNpcMonsterInfo>, IBufferMessage
	{
		// Token: 0x170036B8 RID: 14008
		// (get) Token: 0x0600C13F RID: 49471 RVA: 0x0020B0C7 File Offset: 0x002092C7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SceneNpcMonsterInfo> Parser
		{
			get
			{
				return SceneNpcMonsterInfo._parser;
			}
		}

		// Token: 0x170036B9 RID: 14009
		// (get) Token: 0x0600C140 RID: 49472 RVA: 0x0020B0CE File Offset: 0x002092CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SceneNpcMonsterInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170036BA RID: 14010
		// (get) Token: 0x0600C141 RID: 49473 RVA: 0x0020B0E0 File Offset: 0x002092E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SceneNpcMonsterInfo.Descriptor;
			}
		}

		// Token: 0x0600C142 RID: 49474 RVA: 0x0020B0E7 File Offset: 0x002092E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneNpcMonsterInfo()
		{
		}

		// Token: 0x0600C143 RID: 49475 RVA: 0x0020B0F0 File Offset: 0x002092F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneNpcMonsterInfo(SceneNpcMonsterInfo other) : this()
		{
			this.kHPAGNJLPKF_ = other.kHPAGNJLPKF_;
			this.extraInfo_ = ((other.extraInfo_ != null) ? other.extraInfo_.Clone() : null);
			this.dLBBEKJCGFG_ = other.dLBBEKJCGFG_;
			this.monsterId_ = other.monsterId_;
			this.worldLevel_ = other.worldLevel_;
			this.eventId_ = other.eventId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C144 RID: 49476 RVA: 0x0020B16C File Offset: 0x0020936C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneNpcMonsterInfo Clone()
		{
			return new SceneNpcMonsterInfo(this);
		}

		// Token: 0x170036BB RID: 14011
		// (get) Token: 0x0600C145 RID: 49477 RVA: 0x0020B174 File Offset: 0x00209374
		// (set) Token: 0x0600C146 RID: 49478 RVA: 0x0020B17C File Offset: 0x0020937C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool KHPAGNJLPKF
		{
			get
			{
				return this.kHPAGNJLPKF_;
			}
			set
			{
				this.kHPAGNJLPKF_ = value;
			}
		}

		// Token: 0x170036BC RID: 14012
		// (get) Token: 0x0600C147 RID: 49479 RVA: 0x0020B185 File Offset: 0x00209385
		// (set) Token: 0x0600C148 RID: 49480 RVA: 0x0020B18D File Offset: 0x0020938D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public NpcMonsterExtraInfo ExtraInfo
		{
			get
			{
				return this.extraInfo_;
			}
			set
			{
				this.extraInfo_ = value;
			}
		}

		// Token: 0x170036BD RID: 14013
		// (get) Token: 0x0600C149 RID: 49481 RVA: 0x0020B196 File Offset: 0x00209396
		// (set) Token: 0x0600C14A RID: 49482 RVA: 0x0020B19E File Offset: 0x0020939E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool DLBBEKJCGFG
		{
			get
			{
				return this.dLBBEKJCGFG_;
			}
			set
			{
				this.dLBBEKJCGFG_ = value;
			}
		}

		// Token: 0x170036BE RID: 14014
		// (get) Token: 0x0600C14B RID: 49483 RVA: 0x0020B1A7 File Offset: 0x002093A7
		// (set) Token: 0x0600C14C RID: 49484 RVA: 0x0020B1AF File Offset: 0x002093AF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MonsterId
		{
			get
			{
				return this.monsterId_;
			}
			set
			{
				this.monsterId_ = value;
			}
		}

		// Token: 0x170036BF RID: 14015
		// (get) Token: 0x0600C14D RID: 49485 RVA: 0x0020B1B8 File Offset: 0x002093B8
		// (set) Token: 0x0600C14E RID: 49486 RVA: 0x0020B1C0 File Offset: 0x002093C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint WorldLevel
		{
			get
			{
				return this.worldLevel_;
			}
			set
			{
				this.worldLevel_ = value;
			}
		}

		// Token: 0x170036C0 RID: 14016
		// (get) Token: 0x0600C14F RID: 49487 RVA: 0x0020B1C9 File Offset: 0x002093C9
		// (set) Token: 0x0600C150 RID: 49488 RVA: 0x0020B1D1 File Offset: 0x002093D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EventId
		{
			get
			{
				return this.eventId_;
			}
			set
			{
				this.eventId_ = value;
			}
		}

		// Token: 0x0600C151 RID: 49489 RVA: 0x0020B1DA File Offset: 0x002093DA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SceneNpcMonsterInfo);
		}

		// Token: 0x0600C152 RID: 49490 RVA: 0x0020B1E8 File Offset: 0x002093E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SceneNpcMonsterInfo other)
		{
			return other != null && (other == this || (this.KHPAGNJLPKF == other.KHPAGNJLPKF && object.Equals(this.ExtraInfo, other.ExtraInfo) && this.DLBBEKJCGFG == other.DLBBEKJCGFG && this.MonsterId == other.MonsterId && this.WorldLevel == other.WorldLevel && this.EventId == other.EventId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C153 RID: 49491 RVA: 0x0020B278 File Offset: 0x00209478
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.KHPAGNJLPKF)
			{
				num ^= this.KHPAGNJLPKF.GetHashCode();
			}
			if (this.extraInfo_ != null)
			{
				num ^= this.ExtraInfo.GetHashCode();
			}
			if (this.DLBBEKJCGFG)
			{
				num ^= this.DLBBEKJCGFG.GetHashCode();
			}
			if (this.MonsterId != 0U)
			{
				num ^= this.MonsterId.GetHashCode();
			}
			if (this.WorldLevel != 0U)
			{
				num ^= this.WorldLevel.GetHashCode();
			}
			if (this.EventId != 0U)
			{
				num ^= this.EventId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C154 RID: 49492 RVA: 0x0020B331 File Offset: 0x00209531
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C155 RID: 49493 RVA: 0x0020B339 File Offset: 0x00209539
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C156 RID: 49494 RVA: 0x0020B344 File Offset: 0x00209544
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MonsterId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.MonsterId);
			}
			if (this.extraInfo_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.ExtraInfo);
			}
			if (this.KHPAGNJLPKF)
			{
				output.WriteRawTag(64);
				output.WriteBool(this.KHPAGNJLPKF);
			}
			if (this.WorldLevel != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.WorldLevel);
			}
			if (this.DLBBEKJCGFG)
			{
				output.WriteRawTag(96);
				output.WriteBool(this.DLBBEKJCGFG);
			}
			if (this.EventId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.EventId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C157 RID: 49495 RVA: 0x0020B410 File Offset: 0x00209610
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.KHPAGNJLPKF)
			{
				num += 2;
			}
			if (this.extraInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ExtraInfo);
			}
			if (this.DLBBEKJCGFG)
			{
				num += 2;
			}
			if (this.MonsterId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MonsterId);
			}
			if (this.WorldLevel != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.WorldLevel);
			}
			if (this.EventId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EventId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C158 RID: 49496 RVA: 0x0020B4B0 File Offset: 0x002096B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SceneNpcMonsterInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.KHPAGNJLPKF)
			{
				this.KHPAGNJLPKF = other.KHPAGNJLPKF;
			}
			if (other.extraInfo_ != null)
			{
				if (this.extraInfo_ == null)
				{
					this.ExtraInfo = new NpcMonsterExtraInfo();
				}
				this.ExtraInfo.MergeFrom(other.ExtraInfo);
			}
			if (other.DLBBEKJCGFG)
			{
				this.DLBBEKJCGFG = other.DLBBEKJCGFG;
			}
			if (other.MonsterId != 0U)
			{
				this.MonsterId = other.MonsterId;
			}
			if (other.WorldLevel != 0U)
			{
				this.WorldLevel = other.WorldLevel;
			}
			if (other.EventId != 0U)
			{
				this.EventId = other.EventId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C159 RID: 49497 RVA: 0x0020B568 File Offset: 0x00209768
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C15A RID: 49498 RVA: 0x0020B574 File Offset: 0x00209774
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 64U)
				{
					if (num == 32U)
					{
						this.MonsterId = input.ReadUInt32();
						continue;
					}
					if (num == 58U)
					{
						if (this.extraInfo_ == null)
						{
							this.ExtraInfo = new NpcMonsterExtraInfo();
						}
						input.ReadMessage(this.ExtraInfo);
						continue;
					}
					if (num == 64U)
					{
						this.KHPAGNJLPKF = input.ReadBool();
						continue;
					}
				}
				else
				{
					if (num == 88U)
					{
						this.WorldLevel = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.DLBBEKJCGFG = input.ReadBool();
						continue;
					}
					if (num == 104U)
					{
						this.EventId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04004E12 RID: 19986
		private static readonly MessageParser<SceneNpcMonsterInfo> _parser = new MessageParser<SceneNpcMonsterInfo>(() => new SceneNpcMonsterInfo());

		// Token: 0x04004E13 RID: 19987
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004E14 RID: 19988
		public const int KHPAGNJLPKFFieldNumber = 8;

		// Token: 0x04004E15 RID: 19989
		private bool kHPAGNJLPKF_;

		// Token: 0x04004E16 RID: 19990
		public const int ExtraInfoFieldNumber = 7;

		// Token: 0x04004E17 RID: 19991
		private NpcMonsterExtraInfo extraInfo_;

		// Token: 0x04004E18 RID: 19992
		public const int DLBBEKJCGFGFieldNumber = 12;

		// Token: 0x04004E19 RID: 19993
		private bool dLBBEKJCGFG_;

		// Token: 0x04004E1A RID: 19994
		public const int MonsterIdFieldNumber = 4;

		// Token: 0x04004E1B RID: 19995
		private uint monsterId_;

		// Token: 0x04004E1C RID: 19996
		public const int WorldLevelFieldNumber = 11;

		// Token: 0x04004E1D RID: 19997
		private uint worldLevel_;

		// Token: 0x04004E1E RID: 19998
		public const int EventIdFieldNumber = 13;

		// Token: 0x04004E1F RID: 19999
		private uint eventId_;
	}
}
